<div id="product">
  <div id="bar"><h2><?=@$cat_name;?></h2></div>
  <div class="clear"></div>
	<? 
	foreach($product as $item):
		 
					$visible = @$item['product_image_1']!='' ? "block" : "none";
					$productimage = @explode('.',$item['product_image_1']);				
					$productimage = @$productimage[0].'_140x140.'.@$productimage[1];
				 
	?>
  	<div class="product">
  	<div class="photo"><a href="product/detail/<?=$item['id'];?>"><img src="product/<?=$productimage;?>" width="140" height="140" /></a></div>
    <h2><a href="product/detail/<?=$item['id'];?>"><?=$item['name'];?></a></h2>
    <p><label><?=number_format($item['price']);?></label> บาท / <?=$item['per_unit'];?></p>
    </div>
    <? endforeach; ?>       

    <div class="clear"></div>

</div><!--bestseller-->